package br.ufmg.dcc.simulesspl.view;

import br.ufmg.dcc.simulesspl.model.EngineerCard;

public class EngineerCardView extends AbstractView {

	private EngineerCard engineerCard;
	
	public EngineerCardView(EngineerCard ec)
	{
		engineerCard = ec;
	}
	
	@Override
	public String toString() {
//		return String.format("VELOCITY=%d\tSKILL=%d\tCOST=%d", velocity, skill, cost);
		return String.format("%s\t%s=%d\t%s=%d\t%s=%d",engineerCard.getName(), i18n().str("VELOCITY"), engineerCard.getVelocity(), i18n().str("SKILL"), engineerCard.getSkill(), i18n().str("COST"), engineerCard.getCost());
	}
}
